package com.zs.service;

import com.zs.dao.IUserDao;
import com.zs.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/5/28 上午9:51
 */
@Component //标识当前类交给spring去new，交给spring进行管理，spring组件--bean
public class UserService {

    @Autowired
    IUserDao userDao;

    public void getUser(){
        userDao.getUser();
    }
}
